
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>注册页面</title>
</head>
<body>
<form method="post">
    <table>
        <tr><td>用户名</td><td><input type="text" name="username"></td></tr>
        <tr><td>密码</td><td><input type="password" name="password"></td></tr>
        <tr><td><input type="sumbit" value="登录"></td><td><input type="reset" value="重新填写"></td></tr>
    </table>
</form>
<?php if(!empty($error)) : ?>
<div class="error-box">
    登录失败，错误信息如下：
    <ul><?php foreach ($error as $v) echo "<li>$v</li>"; ?></ul>
</div>
<?php endif;?>
</body>
</html>